
<!DOCTYPE html>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" %>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  <meta name="description" content="">
  <meta name="author" content="">
  <link rel="icon" href="IMG/favicon.ico">

  <title>易PUSH登陆</title>

  <!-- Bootstrap core CSS -->
  <link href="static/css/dist/css/bootstrap.min.css" rel="stylesheet">

  <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  <link href="static/assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

  <!-- Custom styles for this template -->
  <link href="static/css/signin.css" rel="stylesheet">

  <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
  <!--[if lt IE 9]><script src="static/assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
  <script src="static/assets/js/ie-emulation-modes-warning.js"></script>

  <script src="static/css/assets/js/code.js"></script>

  <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <!--
  <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  -->



  <![endif]-->
</head>

<body>

<div class="container">

  <form class="form-signin" method="post" id="form1" action="login">
    <h2 class="form-signin-heading">Please sign in</h2>
    <label for="inputEmail" class="sr-only">Email address</label>

    <input type="email" name="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus>


    <label for="inputPassword" class="sr-only">Password</label>
    <input type="password" name="password" id="inputPassword" class="form-control" placeholder="Password" required>
    <label id="errorEsg" style="color: red;width: 200px;height: 10px;">${errorMsg}</label>
    <button class="btn btn-lg btn-primary btn-block" type="submit" onclick="code();">登 陆</button>
  </form>

</div> <!-- /container -->


<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="static/assets/js/ie10-viewport-bug-workaround.js"></script>
<script>
    function code(){
        document.getElementById("inputPassword").value=base64encode(document.getElementById("inputPassword").value);
        console.log(document.getElementById("inputPassword").value);
    }

</script>
</body>
</html>
